/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "定时任务", TableName = "Sys_QuartzOptions")]
    public partial class Sys_QuartzOptions : BaseEntity
    {
        /// <summary>
        ///
        /// </summary>
        [Key]
        [Display(Name = "Id")]
        [Column(TypeName = "uniqueidentifier")]
        [Required(AllowEmptyStrings = false)]
        public Guid Id { get; set; }

        /// <summary>
        ///任务名称
        /// </summary>
        [Display(Name = "任务名称")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string TaskName { get; set; }

        /// <summary>
        ///任务分组
        /// </summary>
        [Display(Name = "任务分组")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string GroupName { get; set; }

        /// <summary>
        ///请求方式
        /// </summary>
        [Display(Name = "请求方式")]
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        public string Method { get; set; }

        /// <summary>
        ///超时时间(秒)
        /// </summary>
        [Display(Name = "超时时间(秒)")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? TimeOut { get; set; }

        /// <summary>
        ///Corn表达式
        /// </summary>
        [Display(Name = "Corn表达式")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string CronExpression { get; set; }

        /// <summary>
        ///Url地址
        /// </summary>
        [Display(Name = "Url地址")]
        [MaxLength(2000)]
        [Column(TypeName = "nvarchar(2000)")]
        [Editable(true)]
        public string ApiUrl { get; set; }

        /// <summary>
        ///post参数
        /// </summary>
        [Display(Name = "post参数")]
        [Column(TypeName = "nvarchar(max)")]
        [Editable(true)]
        public string PostData { get; set; }

        /// <summary>
        ///AuthKey
        /// </summary>
        [Display(Name = "AuthKey")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string AuthKey { get; set; }

        /// <summary>
        ///AuthValue
        /// </summary>
        [Display(Name = "AuthValue")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string AuthValue { get; set; }

        /// <summary>
        ///描述
        /// </summary>
        [Display(Name = "描述")]
        [MaxLength(2000)]
        [Column(TypeName = "nvarchar(2000)")]
        [Editable(true)]
        public string Describe { get; set; }

        /// <summary>
        ///最后执行执行
        /// </summary>
        [Display(Name = "最后执行执行")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? LastRunTime { get; set; }

        /// <summary>
        ///运行状态
        /// </summary>
        [Display(Name = "运行状态")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Status { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "CreateID")]
        [Column(TypeName = "int")]
        public int? CreateID { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        [Editable(true)]
        public string Creator { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "ModifyID")]
        [Column(TypeName = "int")]
        public int? ModifyID { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Modifier")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        public string Modifier { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        public DateTime? ModifyDate { get; set; }


    }
}